package com.ctshk.common.enums;

/**
 * 机票上架策略 渠道累心
 */
public enum  AirProductChannelType {

    SELF_CUSTTOM(1,"自营"),
    AGENT_CUSTTOM(2,"代理商"),
    SELF_PLATFROM(3,"官方平台"),
    THIRD_PLATFROM(4,"第三方平台"),
    ;


    private int type;
    private String desc;

    private  AirProductChannelType(int type,String desc){
            this.type =type;
            this.desc = desc;
    }
    public static AirProductChannelType get(Integer type){
        for (AirProductChannelType value : AirProductChannelType.values()) {
            if(value.getType()==type.intValue()){
                return  value;
            }
        }
        return  null;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
